package com.zhuyi.broadcast.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuyi.broadcast.pojo.domain.Device;

import java.util.List;


public interface DeviceService extends IService<Device>  {


    public List<Device> list(String searchKey);

    /**
     * 发送轮播计划
     * @param deviceId
     * @param scheduleId
     * @return
     */
    boolean addScheduleToDevice(Long deviceId, Long scheduleId);

    /**
     * 删除轮播计划
     * @param deviceId
     * @param scheduleId
     * @return
     */
    boolean deleteScheduleFromDevice(Long deviceId, Long scheduleId);
}
